import PageTools from '@/components/PageTools/index.vue'
import UploadExcel from '@/components/UploadExcel.vue'
import ImgageUpload from '@/components/ImgageUpload/index.vue'
import ScreenFull from '@/components/ScreenFull/index.vue'
import ThemePicker from '@/components/ThemePicker/index.vue'
import LanguageSelect from '@/components/lang/index.vue'
import TagsView from '@/components/TagsView/index.vue'

// 当前文件的导出对象，我们是通过Vue.use使用的
// 接收一个对象参数，对象里面有一个install方法
// Vue.use()的时候会调用install方法
// install方法的参数是Vue对象

export default {
  install(Vue) {
    Vue.component('PageTools', PageTools)
    // 注册一个excel上传组件
    Vue.component(UploadExcel.name, UploadExcel)
    // 1、组件注册成功
    Vue.component(ImgageUpload.name, ImgageUpload)
    // 2、注册全屏组件
    Vue.component(ScreenFull.name, ScreenFull)
    // 3、注册主题切换组件
    Vue.component(ThemePicker.name, ThemePicker)
    Vue.component(LanguageSelect.name, LanguageSelect)
    Vue.component('TagsView', TagsView)
  }
}

// Vue.use()
